package com.hua.springCloud.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
//json返回信息
public class CommonResult<T>{
    //404
    private Integer code; //告诉前端是404 还是200
    private String mesaage;
    private T data;

    public CommonResult(String mesaage, Integer code) {
        this(code,mesaage,null);
    }
}
